package echo;

/**
 * Write a description of class EstadoDec here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class EstadoBin implements IEstadoBase
{
    private final int BASE = new Integer(2);
    
    /**
     * Constructor for objects of class EstadoDec
     */
    public EstadoBin()
    {

    }

	public Integer getBase()
	{
		return BASE;
	}

	public String display(Integer numDecimal) 
	{
		return "0b" + Integer.toBinaryString(numDecimal);
	}  
	
	public String display(NumeroComplexoComposite numComposite)
	{
		return numComposite.toBinaryString();
	}	
}
